package practise.hibernate.dao;

import org.springframework.transaction.annotation.Transactional;
import practise.hibernate.persistence.VIP;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Richard
 * Date: 9/28/12
 * Time: 9:18 PM
 * To change this template use File | Settings | File Templates.
 */
public interface VIPDao {
    @Transactional(readOnly = true)
    List<VIP> findAllVIPs();

    @Transactional(readOnly = true)
    List<VIP> findVIPByName(String name);

    @Transactional(readOnly = false)
    void deleteAddress(int id);

    @Transactional(readOnly = false )
    VIP merge(VIP person);
}
